package com.wolfman.wolfchat.service;


import com.baomidou.mybatisplus.extension.service.IService;
import com.github.pagehelper.PageInfo;
import com.wolfman.wolfchat.po.Message;

/**
 * @Title
 * @Description
 * @Author WolfMan
 * @Date 2022/1/15 0:42
 * @Email 2370032534@qq.com
 */
public interface MessageService extends IService<Message> {

    /**
     * 查询聊天记录
     * @param fromUserId
     * @param toUserId
     * @param pageNum
     * @param pageSize
     * @return
     */
    PageInfo<Message> selectMessageByUserIdAndPage(Integer fromUserId, Integer toUserId, Integer pageNum, Integer pageSize);

}
